#include"Shader.h"

/////////////////
//include
/////////////////
#include"DeviceContext.h"
/////////////////
//prottype
/////////////////

/////////////////
//const
/////////////////

Shader::Shader(ID3D11VertexShader*	vertex_shader,	ID3D11PixelShader*	pixel_shader,ID3D11InputLayout*	layout)
{
	this->vertex_shader	= vertex_shader;
	this->pixel_shader	= pixel_shader;
	this->layout		= layout;
}
Shader::~Shader()
{
}

void Shader::Set(DeviceContext* device_context)
{
	device_context->SetShader(vertex_shader,pixel_shader);
	device_context->SetLayout(layout);
}